<template>
  <div class="back" v-if="props.back">
    <img src="@/assets/images/icon_back.png" alt="" />
    {{props.title}}
  </div>
</template>

<script setup>
const props = defineProps({
  back: {
    type: Boolean,
    required: false,
  },
  title:{
    type: String,
    default: '',
  }
});
</script>

<style scoped lang="scss">
.back {
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #999;
    font-weight: 700;

    > img {
      width: 26px;
      height: 26px;
      margin-right: 10px;
    }
  }
</style>
